Information Window
An object of class Information Window is the window that opens when you select an item and choose Get Info from the File menu.PROPERTIES
An information window has all the properties defined for object class Window on page 93: Bounds, Closeable, Floating, Index, Modal, Position, Resizable, Titled, Visible, Zoomable, and Zoomed.Unlike other windows, an information window also has these properties:
comment
- The comment displayed in the information window.
Class: String
Modifiable: Yescreation date
- The date on which the item to which the information window belongs was created.
Class: Date
Modifiable: Noicon
- A bitmap of the icon for the item to which the information window belongs.
Class: Icon family (data type defined by Finder)
Modifiable: Yesitem
- A reference to the item to which the information window belongs.
Class: Reference
Modifiable: Nolocked
- A Boolean value that indicates whether the file to which the information window belongs is locked (
true
) or not (false
).
Class: Boolean
Modifiable: Yesminimum partition size
- An integer indicating the minimum amount of memory, in bytes, that an application requires to run (available only for information windows that belong to application files). This value is equivalent to the value in the box labeled "Minimum size" under "Memory Requirements" in the information window (see "Notes").
Class: Integer
Modifiable: Yesmodification date
- The date on which the item to which the information window belongs was most recently modified.
Class: Date
Modifiable: Nopartition size
- An integer indicating the amount of memory, in bytes, that
an application is launched with if a block of this size is free (available only for information windows that belong to application files). This value is equivalent to the value in the box labeled "Preferred size" under "Memory Requirements" in the information window (see "Notes").
Class: Integer
Modifiable: Yesphysical size
- The physical size of the item on disk, in bytes.
Class: Integer
Modifiable: Noproduct version
- The version number shown at the top of the information window.
Class: String
Modifiable: Nosize
- The logical size of the item on disk, in bytes.
Class: Integer
Modifiable: Nostationery
- A Boolean value that indicates whether a document file is
a stationery pad (true
) or not (false
) (available only for information windows that belong to document files.)
Class: Boolean
Modifiable: Yessuggested partition size
- An integer indicating the amount of memory, in bytes, suggested for running an application (available only for information windows that belong to application files). This value is equivalent to the value in the box labeled "Suggested size" under "Memory Requirements" in the information window
(see "Notes").
Class: Integer
Modifiable: Noversion
- The version number shown near the middle of the information window.
Class: String
Modifiable: Nowarn before emptying
- A Boolean value that indicates whether the Finder should warn the user before emptying the Trash (
true
) or not (false
) (available only for the Trash).
Class: String
Modifiable: YesELEMENT CLASSES
NoneCOMMANDS HANDLED
Close, Count, Data Size, Exists, Get, Open, SortDEFAULT VALUE CLASS RETURNED
A reference to an information window or, if you use the plural forminformation windows
, a list of references.EXAMPLE
This script opens the information windows for all application files in a disk whose partition sizes are greater than 1000K:
tell application "Finder" open (information window of application files of ¬ disk "Applications" whose partition size > 1024000) end tellNOTES
The Minimum Partition Size, Partition Size, and Suggested Partition Size are all given in bytes. These values are shown in information windows in kilobytes (K, where 1K = 1024 bytes). For more information about the relationships among these properties, which are identical to the properties of the same name defined for class Application File, see page 40.